package com.entrogy.dao;


import com.entrogy.bean.MenuEntity;
import com.entrogy.bean.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper {

//    UserEntity getMenuIdsByUserId(Integer userid);

    List<MenuEntity> getMenuitemByUserId(String userId, int schoolId);

    List<MenuEntity> findParentMenusByRoleId(int roleId);

    List<MenuEntity> findChildMenusByParentId(@Param(value = "parentMenuId") String parentMenuId, @Param(value = "roleId") int roleId);
}
